/*
 * Copyright (C), 2002-2017, 苏宁易购电子商务有限公司
 * FileName: Activity.java
 * Author:   15050536
 * Date:     2017年3月24日 下午6:12:03
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.suning.sawp.member.dto;

import java.util.Date;

/**
 * 外拓活动
 *
 */
public class AdminActivity{

	private Long id;

	private String name;

	/**
	 * 活动考核开始时间
	 */
	private String startTime;

	/**
	 * 活动考核结束时间
	 */
	private String endTime;

	/**
	 * 大区编码
	 */
	private String areaCode;

	/**
	 * 分公司编码
	 */
	private String companyCode;
	/**
	 * 创建者角色,0:大区；1:分公司；2:店长
	 */
	private Short creatorRole;

	/**
	 * 0:刚创建;1:店长已分配;2:督导已分配
	 */
	private Short flow;

	/**
	 * 创建者姓名
	 */
	private String createUserName;

	/**
	 * 创建人工号
	 */
	private String createUser;

	private Date createTime;

	private String updateUser;

	private Date updateTime;
	
	private String storeNames;
	
	private String status;//活动状态，根据开始，结束时间计算（0：未开始，1：进行中，2：已结束）

	public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public AdminActivity() {

	}

	public String getStoreNames() {
        return storeNames;
    }

    public void setStoreNames(String storeNames) {
        this.storeNames = storeNames;
    }

    /**
	 * @param name
	 * @param startTime
	 * @param endTime
	 */
	public AdminActivity(String name, String startTime, String endTime) {
		super();
		this.name = name;
		this.startTime = startTime;
		this.endTime = endTime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public Short getCreatorRole() {
		return creatorRole;
	}

	public void setCreatorRole(Short creatorRole) {
		this.creatorRole = creatorRole;
	}

	public Short getFlow() {
		return flow;
	}

	public void setFlow(Short flow) {
		this.flow = flow;
	}

	public String getCreateUserName() {
		return createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
    public String toString() {
		/**
		 * 为什么这里没有使用ToStringStyle.SHORT_PREFIX_STYLE 截掉包名 ?而是使用的builder.append?
		 */
        StringBuilder builder = new StringBuilder();
        builder.append("AdminActivity [id=");
        builder.append(id);
        builder.append(", name=");
        builder.append(name);
        builder.append(", startTime=");
        builder.append(startTime);
        builder.append(", endTime=");
        builder.append(endTime);
        builder.append(", areaCode=");
        builder.append(areaCode);
        builder.append(", companyCode=");
        builder.append(companyCode);
        builder.append(", creatorRole=");
        builder.append(creatorRole);
        builder.append(", flow=");
        builder.append(flow);
        builder.append(", createUserName=");
        builder.append(createUserName);
        builder.append(", createUser=");
        builder.append(createUser);
        builder.append(", createTime=");
        builder.append(createTime);
        builder.append(", updateUser=");
        builder.append(updateUser);
        builder.append(", updateTime=");
        builder.append(updateTime);
        builder.append(", storeNames=");
        builder.append(storeNames);
        builder.append(", status=");
        builder.append(status);
        builder.append("]");
        return builder.toString();
    }
}
